
import request from "@/sheep/request";

export default {
//公章审核列表
getCommonSealApply: (params) =>
request({
    url: 'api/common_seal_apply/approve_list',
    method: 'GET',
    params,
    custom: {
        showSuccess: false,
		successMsg: '',
		showError: true,
		errorMsg: '',
		showLoading: true,
		loadingMsg: '加载中',
		auth: true,
    },
}),
	//公章审核通过
	getCommonSealApplyPass: (params) =>
		request({
			url: 'api/common_seal_apply/pass',
			method: 'POST',
			params,
			custom: {
				showSuccess: true,
				successMsg: '',
				showError: true,
				errorMsg: '',
				showLoading: false,
				loadingMsg: '加载中',
				auth: true,
			},
		}),
	//公章审批拒绝
	postCommonSealApplyRefuse: (params) =>
		request({
			url: 'api/common_seal_apply/refuse',
			method: 'POST',
			params,
			custom: {
				showSuccess: true,
				successMsg: '',
				showError: true,
				errorMsg: '',
				showLoading: false,
				loadingMsg: '加载中',
				auth: true,
			},
		}),
//公章详情
postCommonSealApplyView: (params) =>
    request({
        url: 'api/common_seal_apply/view',
        method: 'POST',
        params,
        custom: {
			showSuccess: false,
			successMsg: '',
			showError: true,
			errorMsg: '',
			showLoading: true,
			loadingMsg: '加载中',
			auth: true,
        },
    }),
	//公章申请
	common_seal_applyAddAPI: (params) =>
		request({
			url: 'api/common_seal_apply/add',
			method: 'POST',
			params,
			custom: {
				showSuccess: true,
				successMsg: '',
				showError: true,
				errorMsg: '',
				showLoading: false,
				loadingMsg: '加载中',
				auth: true,
			},
		}),
	//公章申请列表
	common_seal_applyIndexAPI: (params) =>
		request({
			url: 'api/common_seal_apply/index',
			method: 'GET',
			params,
			custom: {
				showSuccess: false,
				successMsg: '',
				showError: true,
				errorMsg: '',
				showLoading: true,
				loadingMsg: '加载中',
				auth: true,
			},
		}),
		//公章回收
		getCommonSealApplyRecycle: (params) =>
			request({
				url: 'api/common_seal_apply/recycle',
				method: 'GET',
				params,
				custom: {
					showSuccess: true,
					successMsg: '',
					showError: true,
					errorMsg: '',
					showLoading: false,
					loadingMsg: '加载中',
					auth: true,
				},
			}),
		
};